﻿using System;
using System.Collections.Generic;

namespace CNav.Common
{
    public class ResponseData<T>
    {
        private T _data;
        private IEnumerable<string> _error;

        public T Data
        {
            get
            {
                return _data;
            }
            set
            {
                _error = null;
                _data = value;
            }
        }

        public IEnumerable<string> Error
        {
            get
            {
                return _error;
            }
            set
            {
                _data = default(T);
                _error = value;
            }
        }
    }
}